package com.core.utils;

public class IndexPath {

	private int row;
	private int col;



	public IndexPath(final int col, final int row) {

		this.col = col;
		this.row = row;
	}



	public int getRow () {

		return row;
	}



	public void setRow ( final int row ) {

		this.row = row;
	}



	public int getCol () {

		return col;
	}



	public void setCol ( final int col ) {

		this.col = col;
	}



	public static IndexPath pathWithRowAndCol ( final int row,
	                                            final int col ) {

		return new IndexPath(col, row);
	}



	@Override
	public String toString () {

		return String.format("[%d;%d]", this.row, this.col);
	}
}
